package cn.yanlin.springcloud.service.impl;

import cn.yanlin.springcloud.dao.PaymentDao;
import cn.yanlin.springcloud.entities.Payment;
import org.springframework.stereotype.Service;
import cn.yanlin.springcloud.service.PaymentService;

import javax.annotation.Resource;

/**
 * @author zhangyanlin
 * @version 1.0
 * @date 2021/10/7 21:30
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    //写数据
    public int create(Payment payment){
       return paymentDao.create(payment);
    }
    //读数据
    public Payment getPaymentById(Long id){
        return paymentDao.getPaymentById(id);
    }
}
